package com.baizhi.dto.request;


import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

@Data
public class TeacherDTO implements Serializable {
    @NotBlank(message="用户名不能为空")
    private String username;
    @NotBlank(message="真实姓名不能为空")
    private String realName;
    @NotBlank(message="性别不能为空")
    private String gender;
    @NotBlank(message="联系方式不能为空")
    private String phone;
    @NotBlank(message="密码不能为空")
    private String password;
    @NotBlank(message="邮箱不能为空")
    @Email(message="请输入正确的邮箱格式")
    private String email;
    @NotBlank(message="地址不能为空")
    private String address;
}
